home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
534.swf
/
scripts
/
frame_70
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
689b
|
32 lines
function d_coin()
{
if(credit >= _root.coinValue && bet < max)
{
d = 1;
while(d < 154)
{
if(_root.chace.hitTest(_root["coin_t" + d]))
{
_root.attachMovie("25coin","25coin" + a,a);
_root["25coin" + a]._x = _root["coin_t" + d]._x;
_root["25coin" + a]._y = _root["coin_t" + d]._y;
bet += 25;
credit -= 25;
a++;
}
d++;
}
}
else if(credit < _root.coinValue)
{
_root.notEnough.play();
}
else if(bet eq max)
{
_root.maxMoney.play();
}
}
startDrag("chace",1);
_root.ball_m._visible = 0;
stop();